<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>后台管理系统</title>
<js href="__PUBLIC__/Js/Jquery/jquery-1.4.4.min.js" />
<link href="../Public/admin/css/golbal.css" rel="stylesheet" type="text/css" />
<link href="../Public/admin/css/notice.css" rel="stylesheet" type="text/css" />
</head>

<body>
<div class="tittle">
<span>图片焦点图管理</span>
</div>
<div class="detab">
<form action="{:U('Jiaodian/dopicture')}" method="post" enctype="multipart/form-data">
上传570*200的图片!<br /><br />
<input name="tupian6" type="file"/>&nbsp;&nbsp;链接：<input name="lianjie6" type="text"/><br />
<input name="tupian7" type="file"/>&nbsp;&nbsp;链接：<input name="lianjie7" type="text"/><br />
<input name="tupian8" type="file"/>&nbsp;&nbsp;链接：<input name="lianjie8" type="text"/><br />
<input name="tupian9" type="file"/>&nbsp;&nbsp;链接：<input name="lianjie9" type="text"/><br />
<input name="tupian10" type="file"/>&nbsp;&nbsp;链接：<input name="lianjie10" type="text"/><br />
<br />
<input type="submit" value="提交"/>
</form>
</div>

<div class="num">

</div>
<div class="clear"></div>
<script type="text/javascript">

//禁用
function forbidden(cateid) {
	cateid = cateid ? cateid : getChecked();
	cateid = cateid.toString();
	if(cateid == '' || !confirm('确定要取消启用？')) return false;
	$.post("{:U('Ad/forbidden')}", {adid:cateid}, function(res){
		if(res == '1') location.href = location.href;
		else alert('禁用失败');
	});
}

//启用
function enable(cateid) {
	cateid = cateid ? cateid : getChecked();
	cateid = cateid.toString();
	$.post("{:U('Ad/enable')}", {adid:cateid}, function(res){
		if(res == '1') location.href = location.href;
		else alert('激活失败');
	});
}
</script>
</body>
</html>
